package com.pb.infra.taskManage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *任务监控
 * @author liaohaoyuan
 * @date 20210501
 */
@Mapper
@Repository
public interface TaskControlMapper {

    /**
     * 查询分页数据
     * @param paramMap
     * @return
     */
    List<Map<String, Object>> select(Map<String, Object> paramMap);

    /**
     * 总条数
     * @param paramMap
     * @return
     */
    Long selectCount(Map<String, Object> paramMap);

    /**
     * 定时任务
     * @param paramMap
     * @return
     */
    List<Map<String, Object>> getLastDataDate(Map<String, Object> paramMap);

    /**
     * 修改工作状态
     * @param paramMap
     * @return
     */
    Integer doUpdateStatus(Map<String, Object> paramMap);

    /**
     * 查询最新日期数据
     * @param paramMap
     * @return
     */
    List<Map<String,Object>> getCheckData(Map<String, Object> paramMap);

    /**
     * 工作状态
     * @param paramMap
     * @return
     */
    List<String> selectStatus(Map<String, Object> paramMap);

}
